package src.model.repository;

import java.util.List;

import src.model.bll.ActorsBLL;
import src.model.entity.Actors;

public class ActorsRES {
	
	private final ActorsBLL actorsBLL;
	
	public ActorsRES() {
		this.actorsBLL = new ActorsBLL();
	}
	public boolean insert(Actors entity) {
		return actorsBLL.insertEntity(entity);
	}

	public boolean update(Actors entity) {
		return actorsBLL.updateEntity(entity);
	}

	public boolean delete(Actors entity) {
		return actorsBLL.deleteEntity(entity);
	}

	public List<Actors> getAll() {
		return actorsBLL.getAllEntity();
	}

	public Actors findById(long id) {
		return actorsBLL.findEntityById(id);
	}


}
